﻿@model OralExamEntity.OETeacher.TestBegin
@{
    ViewBag.Title = "TestBegin";
}
@section scripts{
    <script type="text/javascript">
        $(function () {
            $("span[name='btnSetTestBegin']").click(function () {
                var classId = $(this).attr("ClassId");
                var testId = $(this).attr("TestId");
                $.post("", { classId: classId, testId: testId }, function (result) {
                    if (result.Result == 1) {
                        var url = '@Model.GetUrl("teacher/testresult")?testId=' + testId + '&classId=' + classId;
                        location.href = url;
                    } else {
                        alert('初始化错误！');
                    }
                }, "json");
            });
        })
    </script>
}
@Html.Partial(Model.ViewPath + "head.cshtml")
@Html.Partial(Model.ViewPath + "Teacher_TestBegin.cshtml", Model)
@Html.Partial(Model.ViewPath + "feet.cshtml")
